// http://39.104.73.17:8080/ydrobot-api/swagger-ui.html#/

import request from '@/utils/request'

// 机器人模块
// GET /ui/robots
// list
export function robotsList(data) {
    return request({
        url: '/ui/robots',
        method: 'get',
        data
    })
}

// POST /ui/robots
// add
export function robotsAdd(data) {
    return request({
        url: '/ui/robots',
        method: 'post',
        data
    })
}

// PUT /ui/robots
// update
export function robotUpdate(data) {
    return request({
        url: '/ui/robots',
        method: 'put',
        data
    })
}

// DELETE /ui/robots/{id}
// delete
export function robotsDelete(data, id) {
    return request({
        url: '/ui/robots' + '/' + id,
        method: 'delete',
        data
    })
}

// GET /ui/robots/{id}
// detail
export function robotsDetail(data, id) {
    return request({
        url: '/ui/robots' + '/' + id,
        method: 'get',
        data
    })
}

// GET /ui/robots/{id}/current-task
// 获取机器人当前任务信息
export function robotsCurrentTask(data, id) {
    return request({
        url: '/ui/robots' + '/' + id + '/current-task',
        method: 'get',
        data
    })
}

// 巡检类型模块
// list
export function inspectTypesList(data) {
    if (!data) {
        data = {
            size: 0
        }
    } else {
        if (data.hasOwnProperty("size") != true) {
            data["size"] = 0;
        }
    }
    return request({
        url: '/ui/inspect-types',
        method: 'get',
        data
    })
}
// add
export function inspectTypesAdd(data) {
    return request({
        url: '/ui/inspect-types',
        method: 'post',
        data
    })
}
// update
export function inspectTypesUpdate(data) {
    return request({
        url: '/ui/inspect-types',
        method: 'put',
        data
    })
}
// inspect types tree
export function inspectTypesTree(data) {
    if (!data) {
        data = {
            size: 0
        }
    } else {
        if (data.hasOwnProperty("size") != true) {
            data["size"] = 0;
        }
    }
    return request({
        url: '/ui/inspect-types/tree',
        method: 'get',
        data
    })
}
// delete
export function inspectTypesDelete(data, id) {
    return request({
        url: '/ui/inspect-types' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function inspectTypesDetail(data, id) {
    return request({
        url: '/ui/inspect-typess' + '/' + id,
        method: 'get',
        data
    })
}

// 设备模块
// list
export function devicesList(data) {
    return request({
        url: '/ui/devices',
        method: 'get',
        data
    })
}
// add
export function devicesAdd(data) {
    return request({
        url: '/ui/devices',
        method: 'post',
        data
    })
}
// update
export function devicesUpdate(data) {
    return request({
        url: '/ui/devices',
        method: 'put',
        data
    })
}
// delete
export function devicesDelete(data, id) {
    return request({
        url: '/ui/devices' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function devicesDetail(data, id) {
    return request({
        url: '/ui/devices' + '/' + id,
        method: 'get',
        data
    })
}
// device area
export function devicesAreas(data) {
    if (!data) {
        data = {
            size: 0
        }
    } else {
        if (data.hasOwnProperty("size") != true) {
            data["size"] = 0;
        }
    }
    return request({
        url: '/ui/devices/areas',
        method: 'get',
        data
    })
}
// device area intervals
export function devicesAreaIntervals(data) {
    return request({
        url: '/ui/devices/intervals',
        method: 'get',
        data
    })
}
// device area interval-devices
export function areasIntervalDevices(data) {
    return request({
        url: '/ui/devices/interval-devices',
        method: 'get',
        data
    })
}

// 设备类型模块
// list
export function devicesTypesList(data) {
    if (!data) {
        data = {
            size: 0
        }
    } else {
        if (data.hasOwnProperty("size") != true) {
            data["size"] = 0;
        }
    }
    return request({
        url: '/ui/device-types',
        method: 'get',
        data
    })
}
// add
export function devicesTypesAdd(data) {
    return request({
        url: '/ui/device-types',
        method: 'post',
        data
    })
}
// update
export function devicesTypesUpdate(data) {
    return request({
        url: '/ui/device-types',
        method: 'put',
        data
    })
}
// delete
export function devicesTypesDelete(data, id) {
    return request({
        url: '/ui/device-types' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function devicesTypesDetail(data, id) {
    return request({
        url: '/ui/device-types' + '/' + id,
        method: 'get',
        data
    })
}

// 识别类型模块
// list
export function reconTypesList(data) {
    if (!data) {
        data = {
            size: 0
        }
    } else {
        if (data.hasOwnProperty("size") != true) {
            data["size"] = 0;
        }
    }
    return request({
        url: '/ui/recon-types',
        method: 'get',
        data
    })
}
// add
export function reconTypesAdd(data) {
    return request({
        url: '/ui/recon-types',
        method: 'post',
        data
    })
}
// update
export function reconTypesUpdate(data) {
    return request({
        url: '/ui/recon-types',
        method: 'put',
        data
    })
}
// delete
export function reconTypesDelete(data, id) {
    return request({
        url: '/ui/recon-types' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function reconTypesDetail(data, id) {
    return request({
        url: '/ui/recon-types' + '/' + id,
        method: 'get',
        data
    })
}

// 表计类型模块
// list
export function meterTypesList(data) {
    if (!data) {
        data = {
            size: 0
        }
    } else {
        if (data.hasOwnProperty("size") != true) {
            data["size"] = 0;
        }
    }
    return request({
        url: '/ui/meter-types',
        method: 'get',
        data
    })
}
// add
export function meterTypesAdd(data) {
    return request({
        url: '/ui/meter-types',
        method: 'post',
        data
    })
}
// update
export function meterTypesUpdate(data) {
    return request({
        url: '/ui/meter-types',
        method: 'put',
        data
    })
}
// delete
export function meterTypesDelete(data, id) {
    return request({
        url: '/ui/meter-types' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function meterTypesDetail(data, id) {
    return request({
        url: '/ui/meter-types' + '/' + id,
        method: 'get',
        data
    })
}

// 设备外观模块
// list
export function faceTypesList(data) {
    if (!data) {
        data = {
            size: 0
        }
    } else {
        if (data.hasOwnProperty("size") != true) {
            data["size"] = 0;
        }
    }
    return request({
        url: '/ui/face-types',
        method: 'get',
        data
    })
}
// add
export function faceTypesAdd(data) {
    return request({
        url: '/ui/face-types',
        method: 'post',
        data
    })
}
// update
export function faceTypesUpdate(data) {
    return request({
        url: '/ui/face-types',
        method: 'put',
        data
    })
}
// delete
export function faceTypesDelete(data, id) {
    return request({
        url: '/ui/face-types' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function faceTypesDetail(data, id) {
    return request({
        url: '/ui/face-types' + '/' + id,
        method: 'get',
        data
    })
}

// 发热类型模块
// GET /ui/hot-types
// list
export function hotTypesList(data) {
    return request({
        url: '/ui/hot-types',
        method: 'get',
        data
    })
}

// POST /ui/hot-types
// add
export function hotTypesAdd(data) {
    return request({
        url: '/ui/hot-types',
        method: 'post',
        data
    })
}

// PUT /ui/hot-types
// update
export function hotTypesUpdate(data) {
    return request({
        url: '/ui/hot-types',
        method: 'put',
        data
    })
}

// DELETE /ui/hot-types/{id}
// delete
export function hotTypesDelete(data, id) {
    return request({
        url: '/ui/hot-types' + '/' + id,
        method: 'delete',
        data
    })
}

// GET /ui/hot-types/{id}
// detail
export function hotTypesDetail(data, id) {
    return request({
        url: '/ui/hot-types' + '/' + id,
        method: 'get',
        data
    })
}

// 保存类型模块
// GET /ui/save-types
// list
export function saveTypesList(data) {
    return request({
        url: '/ui/save-types',
        method: 'get',
        data
    })
}

// POST /ui/save-types
// add
export function saveTypesAdd(data) {
    return request({
        url: '/ui/save-types',
        method: 'post',
        data
    })
}

// PUT /ui/save-types
// update
export function saveTypesUpdate(data) {
    return request({
        url: '/ui/save-types',
        method: 'put',
        data
    })
}

// DELETE /ui/save-types/{id}
// delete
export function saveTypesDelete(data, id) {
    return request({
        url: '/ui/save-types' + '/' + id,
        method: 'delete',
        data
    })
}

// GET /ui/save-types/{id}
// detail
export function saveTypesDetail(data, id) {
    return request({
        url: '/ui/save-types' + '/' + id,
        method: 'get',
        data
    })
}


// 识别模型模块
// get /ui/recon-models
// 列表
export function reconModelsList(data) {
    return request({
        url: '/ui/recon-models',
        method: 'get',
        data
    })
}


// 识别模型子类模块
// get /ui/recon-model-subs
// 列表
export function reconModelSubsList(data) {
    return request({
        url: '/ui/recon-model-subs',
        method: 'get',
        data
    })
}
// post /ui/recon-model-subs
// 添加
export function reconModelSubsAdd(data) {
    return request({
        url: 'recon-model-subs',
        method: 'post',
        data
    })
}
// delete /ui/recon-model-subs/{id}
// 删除
export function reconModelsDelete(data, id) {
    return request({
        url: '/ui/recon-model-subs' + '/' + id,
        method: 'delete',
        data
    })
}
// get /ui/recon-model-subs/{id}
// 详情
export function reconModelsDetail(data, id) {
    return request({
        url: '/ui/recon-model-subs' + '/' + id,
        method: 'get',
        data
    })
}
// put /ui/recon-model-subs/{id}
// 更新
export function reconModelsUpdate(data, id) {
    return request({
        url: '/ui/recon-model-subs' + '/' + id,
        method: 'put',
        data
    })
}

// 观测位模块
// GET /ui/watch-poss
// list
export function watchPossList(data) {
    return request({
        url: '/ui/watch-poss',
        method: 'get',
        data
    })
}

// POST /ui/watch-poss
// add
export function watchPossAdd(data) {
    return request({
        url: '/ui/watch-poss',
        method: 'post',
        data
    })
}

// PUT /ui/watch-poss
// update
export function watchPossUpdate(data) {
    return request({
        url: '/ui/watch-poss',
        method: 'put',
        data
    })
}

// DELETE /ui/watch-poss/{id}
// delete
export function watchPossDelete(data, id) {
    return request({
        url: '/ui/watch-poss' + '/' + id,
        method: 'delete',
        data
    })
}

// GET /ui/watch-poss/{id}
// detail
export function watchPossDetail(data, id) {
    return request({
        url: '/ui/watch-poss' + '/' + id,
        method: 'get',
        data
    })
}

// 点位模块
// list
export function pointsList(data) {
    return request({
        url: '/ui/points',
        method: 'get',
        data
    })
}
// add
export function pointsAdd(data) {
    return request({
        url: '/ui/points',
        method: 'post',
        data
    })
}
// get
export function getPointsSetting(data, id) {
    return request({
        url: '/ui/points' + '/' + id,
        method: 'get',
        data
    })
}
// update
export function pointsUpdate(data, id) {
    return request({
        url: '/ui/points' + '/' + id,
        method: 'put',
        data
    })
}
// delete
export function pointsDelete(data, id) {
    return request({
        url: '/ui/points' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function pointsDetail(data, id) {
    return request({
        url: '/ui/points' + '/' + id,
        method: 'get',
        data
    })
}
// points tree
export function pointsTree(data) {
    return request({
        url: '/ui/points/tree',
        method: 'get',
        data
    })
}
// get /ui/points/abnormal-tree
// 获取异常点位树
export function pointsAbnormalList(data) {
    return request({
        url: '/ui/points/abnormal-tree',
        method: 'get',
        data
    })
}


// 点位关系模块
// POST /ui/point-relation-settings
// 获取关联点列表
export function pointRelationSettingsList(data) {
    return request({
        url: '/ui/point-relation-settings',
        method: 'post',
        data
    })
}
// put /ui/point-relation-settings
// 更新点位关系
export function pointRelationSettingsUpdate(data) {
    return request({
        url: '/ui/point-relation-settings',
        method: 'put',
        data
    })
}
// GET /ui/point-relation-settings/relations
// 获取某个点的关联点
export function pointRelationSettingsRelationsList(data) {
    return request({
        url: '/ui/point-relation-settings/relations',
        method: 'get',
        data
    })
}

// 任务模块
// list
export function tasksList(data) {
    return request({
        url: '/ui/tasks',
        method: 'get',
        data
    })
}
// add
export function tasksAdd(data) {
    return request({
        url: '/ui/tasks',
        method: 'post',
        data
    })
}
// GET 获取任务执行计划列表
export function deleteTasksExecutePlan(data) {
    return request({
        url: '/ui/tasks/delete-execute-plan',
        method: 'post',
        data
    })
}
// GET 获取任务执行计划列表
export function tasksExecutePlan(data) {
    return request({
        url: '/ui/tasks/execute-plan',
        method: 'get',
        data
    })
}
// GET 获取任务按月份展示
export function tasksMonthShow(data) {
    return request({
        url: '/ui/tasks/month-show',
        method: 'get',
        data
    })
}
// update
export function tasksUpdate(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id,
        method: 'put',
        data
    })
}
// delete
export function tasksDelete(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function tasksDetail(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id,
        method: 'get',
        data
    })
}

// GET /ui/tasks/{id}/check-points
// 获取某个任务的巡检点
export function currentTaskCheckPoints(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id + '/check-points',
        method: 'get',
        data
    })
}

// get /ui/tasks/{id}/execut-status
// 判断当前任务是否可执行
export function tasksExecutStatus(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id + '/execut-status',
        method: 'get',
        data
    })
}
// tasks points
export function tasksPointsList(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id + '/points',
        method: 'get',
        data
    })
}
// get /ui/tasks/{id}/current-path
// 获取某个任务的当前路径
export function tasksCurrentPath(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id + '/current-path',
        method: 'get',
        data
    })
}

// GET /ui/tasks/{id}/editStatus
// 获取任务是否可编辑
export function tasksEditStatus(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id + '/editStatus',
        method: 'get',
        data
    })
}

// GET /ui/tasks/{id}/path
// 更新某个任务的路径
export function getRobotRoute(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id + '/path',
        method: 'get',
        data
    })
}

// PUT /ui/tasks/{id}/path
// 更新某个任务的路径
export function putRobotRoute(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id + '/path',
        method: 'put',
        data
    })
}

// GET /ui/tasks/{id}/watch-pos
// 获取某个任务的停靠点
export function currentTaskWatchPos(data, id) {
    return request({
        url: '/ui/tasks' + '/' + id + '/watch-pos',
        method: 'get',
        data
    })
}


// 告警类型模块
// list
export function alarmTypesList(data) {
    return request({
        url: '/ui/alarm-types',
        method: 'get',
        data
    })
}
// add
export function alarmTypesAdd(data) {
    return request({
        url: '/ui/alarm-types',
        method: 'post',
        data
    })
}
// update
export function alarmTypesUpdate(data) {
    return request({
        url: '/ui/alarm-types',
        method: 'put',
        data
    })
}
// delete
export function alarmTypesDelete(data, id) {
    return request({
        url: '/ui/alarm-types' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function alarmTypesDetail(data, id) {
    return request({
        url: '/ui/alarm-types' + '/' + id,
        method: 'get',
        data
    })
}

// 点位告警记录模块
// list
export function pointAlarmRecordList(data) {
    return request({
        url: '/ui/point-alarm-historys',
        method: 'post',
        data
    })
}
// update
export function pointAlarmRecordBatchConfirm(data) {
    return request({
        url: '/ui/point-alarm-historys/batch-confirm',
        method: 'put',
        data
    })
}
// post 获取报表
export function pointAlarmRecordReportList(data) {
    return request({
        url: '/ui/point-alarm-historys/report',
        method: 'post',
        data
    })
}
// delete
export function pointAlarmRecordDelete(data, id) {
    return request({
        url: '/ui/point-alarm-historys' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function pointAlarmRecordDetail(data, id) {
    return request({
        url: '/ui/point-alarm-historys' + '/' + id,
        method: 'get',
        data
    })
}
// update
export function pointAlarmRecordUpdate(data, id) {
    return request({
        url: '/ui/point-alarm-historys' + '/' + id,
        method: 'put',
        data
    })
}

// 点位告警设置模块
// list
export function pointAlarmSettingList(data) {
    return request({
        url: '/ui/point-alarm-settings',
        method: 'get',
        data
    })
}
// add
export function pointAlarmSettingAdd(data) {
    return request({
        url: '/ui/point-alarm-settings',
        method: 'post',
        data
    })
}
// update
export function pointAlarmSettingUpdate(data) {
    return request({
        url: '/ui/point-alarm-settings',
        method: 'put',
        data
    })
}
// 批量更新点位报警设置参数
export function pointAlarmSettingBatch(data) {
    return request({
        url: '/ui/point-alarm-settings/batch',
        method: 'put',
        data
    })
}
// delete
export function pointAlarmSettingDelete(data, id) {
    return request({
        url: '/ui/point-alarm-settings' + '/' + id,
        method: 'delete',
        data
    })
}
// detail
export function pointAlarmSettingDetail(data, id) {
    return request({
        url: '/ui/point-alarm-settings' + '/' + id,
        method: 'get',
        data
    })
}

// 任务定期执行模块
// GET /ui/task-regulars
// list
export function taskRegularsList(data) {
    return request({
        url: '/ui/task-regulars',
        method: 'get',
        data
    })
}

// POST /ui/task-regulars
// add
export function taskRegularsAdd(data) {
    return request({
        url: '/ui/task-regulars',
        method: 'post',
        data
    })
}

// PUT /ui/task-regulars/{id}
// update
export function taskRegularsUpdate(data) {
    return request({
        url: '/ui/task-regulars/batch',
        method: 'put',
        data
    })
}

// DELETE /ui/task-regulars/{id}
// delete
export function taskRegularsDelete(data, id) {
    return request({
        url: '/ui/task-regulars' + '/' + id,
        method: 'delete',
        data
    })
}

// GET /ui/task-regulars/{id}
// detail
export function taskRegularsDetail(data, id) {
    return request({
        url: '/ui/task-regulars' + '/' + id,
        method: 'get',
        data
    })
}

// 任务周期执行模块
// GET /ui/task-cycles
// list
export function taskCyclesList(data) {
    return request({
        url: '/ui/task-cycles',
        method: 'get',
        data
    })
}

// POST /ui/task-cycles
// add
export function taskCyclesAdd(data) {
    return request({
        url: '/ui/task-cycles',
        method: 'post',
        data
    })
}

// PUT /ui/task-cycles/{id}
// update
export function taskCyclesUpdate(data, id) {
    return request({
        url: '/ui/task-cycles' + '/' + id,
        method: 'put',
        data
    })
}

// DELETE /ui/task-cycles/{id}
// delete
export function taskCyclesDelete(data, id) {
    return request({
        url: '/ui/task-cycles' + '/' + id,
        method: 'delete',
        data
    })
}

// GET /ui/task-cycles/{id}
// detail
export function taskCyclesDetail(data, id) {
    return request({
        url: '/ui/task-cycles' + '/' + id,
        method: 'get',
        data
    })
}

// 巡检类型默认配置模块
// GET /ui/inspect-type-chooses
// list
export function inspectTypeChoosesList(data) {
    return request({
        url: '/ui/inspect-type-chooses',
        method: 'get',
        data
    })
}

// POST /ui/inspect-type-chooses
// add
export function inspectTypeChoosesAdd(data) {
    return request({
        url: '/ui/inspect-type-chooses',
        method: 'post',
        data
    })
}

// PUT /ui/inspect-type-chooses
// update
export function inspectTypeChoosesUpdate(data) {
    return request({
        url: '/ui/inspect-type-chooses',
        method: 'put',
        data
    })
}

// GET /ui/inspect-type-chooses/default-checks
// 获取巡检点默认选项
export function inspectTypeChoosesDefaultChecks(data) {
    return request({
        url: '/ui/inspect-type-chooses/default-checks',
        method: 'get',
        data
    })
}
// put
export function updateInspectTypeChooses(data, id) {
    return request({
        url: '/ui/inspect-type-chooses/batch',
        method: 'put',
        data
    })
}

// DELETE /ui/inspect-type-chooses/{id}
// delete
export function inspectTypeChoosesDelete(data) {
    return request({
        url: '/ui/inspect-type-chooses' + '/' + id,
        method: 'delete',
        data
    })
}

// GET /ui/inspect-type-chooses/{id}
// detail
export function inspectTypeChoosesDetail(data) {
    return request({
        url: '/ui/inspect-type-chooses' + '/' + id,
        method: 'get',
        data
    })
}

// 点位告警设置模块 :
// GET /ui/point-alarm-settings
// list
export function pointAlarmSettingsList(data) {
    return request({
        url: '/ui/point-alarm-settings',
        method: 'get',
        data
    })
}

// POST /ui/point-alarm-settings
// add
export function pointAlarmSettingsAdd(data) {
    return request({
        url: '/ui/point-alarm-settings',
        method: 'post',
        data
    })
}

// PUT /ui/point-alarm-settings
// update
export function pointAlarmSettingsUpdate(data) {
    return request({
        url: '/ui/point-alarm-settings',
        method: 'put',
        data
    })
}

// PUT /ui/point-alarm-settings/batch
// 批量更新点位报警设置参数
export function pointAlarmSettingsBatch(data) {
    return request({
        url: '/ui/point-alarm-settings/batch',
        method: 'put',
        data
    })
}

// DELETE /ui/point-alarm-settings/{id}
// delete
export function pointAlarmSettingsDelete(data, id) {
    return request({
        url: '/ui/point-alarm-settings' + '/' + id,
        method: 'delete',
        data
    })
}

// GET /ui/point-alarm-settings/{id}
// detail
export function pointAlarmSettingsDetail(data, id) {
    return request({
        url: '/ui/point-alarm-settings' + '/' + id,
        method: 'get',
        data
    })
}

// 任务执行历史记录模块 :
// GET /ui/task-historys
// list
export function taskHistorysList(data) {
    return request({
        url: '/ui/task-historys',
        method: 'get',
        data
    })
}

// get /ui/task-historys/current-task-alarm-num
// 获取当前执行任务的报警数量
export function currentTaskAlarmNum(data) {
    return request({
        url: '/ui/task-historys/current-task-alarm-num',
        method: 'get',
        data
    })
}

// get /ui/task-historys/exports
// 巡检报告导出
export function taskHistorysExports(data) {
    return request({
        url: '/ui/task-historys/exports',
        method: 'get',
        data
    })
}

// PUT /ui/task-historys/{id}
// put
export function taskHistoryUpdate(data, id) {
    return request({
        url: '/ui/task-historys' + '/' + id,
        method: 'put',
        data
    })
}

// 点位历史记录模块
// POST /ui/point-historys
// list
export function pointHistoryList(data) {
    return request({
        url: '/ui/point-historys',
        method: 'post',
        data
    })
}

// 点位历史记录模块
// POST /ui/point-historys
// list
export function pointHistoryBatchConfirm(data) {
    return request({
        url: '/ui/point-historys/batch-confirm',
        method: 'post',
        data
    })
}

// POST /ui/point-historys/contrast
// list
export function pointHistoryContrast(data) {
    return request({
        url: '/ui/point-historys/contrast',
        method: 'post',
        data
    })
}

// get /ui/point-historys/relation-point
// 获取关联点历史数据
export function pointHistoryRelationPoint(data) {
    return request({
        url: '/ui/point-historys/relation-point',
        method: 'get',
        data
    })
}

// PUT /ui/point-historys/{id}
// update
export function updatePointHistory(data, id) {
    return request({
        url: '/ui/point-historys' + '/' + id,
        method: 'put',
        data
    })
}

// 角色模块 :
// GET /ui/roles
// list
export function rolesList(data) {
    return request({
        url: '/ui/roles',
        method: 'get',
        data
    })
}
// POST /ui/roles
// add
export function addRole(data) {
    return request({
        url: '/ui/roles',
        method: 'post',
        data
    })
}
// DELETE /ui/roles
// delete
export function deleteRole(data, id) {
    return request({
        url: '/ui/roles' + '/' + id,
        method: 'delete',
        data
    })
}
// PUT /ui/roles/{id}/Permissions
// put
export function putRolePermissions(data, id) {
    return request({
        url: '/ui/roles' + '/' + id + '/' + 'Permissions',
        method: 'put',
        data
    })
}

// 用户模块 :
// GET /ui/users
// list
export function usersList(data) {
    return request({
        url: '/ui/users',
        method: 'get',
        data
    })
}
// POST /ui/users
// add
export function addUser(data) {
    return request({
        url: '/ui/users',
        method: 'post',
        data
    })
}
// DELETE /ui/users/{id}
// delete
export function deleteUser(data, id) {
    return request({
        url: '/ui/users' + '/' + id,
        method: 'delete',
        data
    })
}
// GET /ui/users/{id}
// detail
export function userDetail(data) {
    return request({
        url: '/ui/user',
        method: 'get',
        data
    })
}
// PUT /ui/users/{id}
// update
export function updateUser(data, id) {
    return request({
        url: '/ui/users' + '/' + id,
        method: 'put',
        data
    })
}

// 组织机构模块
// GET /ui/organizations/tree
// list
export function organizationsTree(data) {
    return request({
        url: '/ui/organizations/tree',
        method: 'get',
        data
    })
}
// GET /ui/organizations/{id}
// detail
export function organizationDetail(data, id) {
    return request({
        url: '/ui/organizations' + '/' + id,
        method: 'get',
        data
    })
}
// POST /ui/organizations
// add
export function addOrganization(data, id) {
    return request({
        url: '/ui/organizations',
        method: 'post',
        data
    })
}
// DELETE /ui/organizations/{id}
// delete
export function deleteOrganization(data, id) {
    return request({
        url: '/ui/organizations' + '/' + id,
        method: 'delete',
        data
    })
}
// PUT /ui/organizations/{id}
// update
export function updateOrganization(data, id) {
    return request({
        url: '/ui/organizations' + '/' + id,
        method: 'put',
        data
    })
}

// 权限模块
// GET /ui/organizations/tree
// tree
export function permissionsTree(data) {
    return request({
        url: '/ui/permissions/tree',
        method: 'get',
        data
    })
}
// GET /ui/permissions
// list
export function rolePermissions(data) {
    return request({
        url: '/ui/permissions',
        method: 'get',
        data
    })
}
// 权限模块
// GET /ui/operation-logs
// list
export function operationLogs(data) {
    return request({
        url: '/ui/operation-logs',
        method: 'get',
        data
    })
}

// 日志
// post /ui/operation-logs
// post
export function postOperationLogs(data) {
    return request({
        url: '/ui/operation-logs',
        method: 'post',
        data
    })
}

// 系统点位告警记录模块
// get /ui/sys-point-alarm-historys
// list
export function sysPointAlarmHistorysList(data) {
    return request({
        url: '/ui/sys-point-alarm-historys',
        method: 'get',
        data
    })
}

// post /ui/sys-point-alarm-historys
// add
export function sysPointAlarmHistorysAdd(data) {
    return request({
        url: '/ui/sys-point-alarm-historys',
        method: 'post',
        data
    })
}

// put /ui/sys-point-alarm-historys/batch-confirm
// 批量确认
export function sysPointAlarmHistorysConfirm(data) {
    return request({
        url: '/ui/sys-point-alarm-historys/batch-confirm',
        method: 'put',
        data
    })
}

// delete /ui/sys-point-alarm-historys/{id}
// delete
export function sysPointAlarmHistorysDelete(data, id) {
    return request({
        url: '/ui/sys-point-alarm-historys' + '/' + id,
        method: 'delete',
        data
    })
}

// get /ui/sys-point-alarm-historys/{id}
// detail
export function sysPointAlarmHistorysDetail(data, id) {
    return request({
        url: '/ui/sys-point-alarm-historys' + '/' + id,
        method: 'get',
        data
    })
}

// put /ui/sys-point-alarm-historys/{id}
// update
export function sysPointAlarmHistorysUpdate(data, id) {
    return request({
        url: '/ui/sys-point-alarm-historys' + '/' + id,
        method: 'put',
        data
    })
}


// 机器人参数模块
// get /ui/robot-params
// 列表
export function robotParams(data) {
    return request({
        url: '/ui/robot-params',
        method: 'get',
        data
    })
}

// put /ui/robot-params/batch
// 批量更新机器人参数
export function robotParamsBatch(data) {
    return request({
        url: '/ui/robot-params/batch',
        method: 'put',
        data
    })
}


// 系统设置模块
// get /ui/system-settings
// 列表
export function systemSettings(data) {
    return request({
        url: '/ui/system-settings',
        method: 'get',
        data
    })
}
// put /ui/system-settings/batch
// 列表
export function systemSettingsBatch(data) {
    return request({
        url: '/ui/system-settings/batch',
        method: 'put',
        data
    })
}

// 文件上传模块
// post /ui/files/
// 文件上传
export function filesUpload(data) {
    return request({
        url: '/ui/files/',
        method: 'post',
        data
    })
}

// /ui/robots/{id}/check-control-auth
// get
export function checkControlAuth(data, id) {
    return request({
        url: '/ui/robots/' + id + '/check-control-auth',
        method: 'get',
        data
    })
}
// /ui/robots/{id}/control-auth
// get
export function getControlAuth(data, id) {
    return request({
        url: '/ui/robots/' + id + '/control-auth',
        method: 'get',
        data
    })
}

// /ui/robots/{id}/control-auth
// post
export function setControlAuth(data, id) {
    return request({
        url: '/ui/robots/' + id + '/control-auth',
        method: 'post',
        data
    })
}